#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int ans = 0;
    for (int i = 1; i < 10; ++i) {
        for (int j = 1; powl(i / 10.0, j) >= 0.1; ++j) {
            ++ans;
        }
    }
    cout << ans << endl;
}